package com.billing.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.billing.model.dao.SchedulingdetailsBeanMapper;
import com.billing.model.entity.TSchedulingdetails;
import com.billing.service.SchedulingdetailsService;
@Service
public class SchedulingdetailsServiceImpl implements SchedulingdetailsService {

	@Resource
	SchedulingdetailsBeanMapper schedulingdetailsBeanMapper;


	public List<TSchedulingdetails> getTSchedulingdetailsList(int year,
			int month, int day,int schedulingId) {
		return schedulingdetailsBeanMapper.getTSchedulingdetailsList(year, month, day,schedulingId);
	}

	public int insertTSchedulingdetailsList(List<TSchedulingdetails> list) {
		return schedulingdetailsBeanMapper.insertTSchedulingdetailsList(list);
	}

	public TSchedulingdetails getTSchedulingdetailsDesc(int year, int month,
			int day,int schedulingId) {
		return schedulingdetailsBeanMapper.getTSchedulingdetailsDesc(year, month, day,schedulingId);
	}

	public TSchedulingdetails getTSchedulingdetailsAsc(int year, int month,
			int day,int schedulingId) {
		return schedulingdetailsBeanMapper.getTSchedulingdetailsAsc(year, month, day,schedulingId);
	}

	public TSchedulingdetails getTSchedulingdetailsById(int id) {
		return schedulingdetailsBeanMapper.getTSchedulingdetailsById(id);
	}

	@Override
	public List<TSchedulingdetails> getTSchedulingdetailsYear(int year,
			int shiftid) {
		return schedulingdetailsBeanMapper.getTSchedulingdetailsYear(year, shiftid);
	}

	@Override
	public int deleteTSchedulingdetails(int id, int year) {
		return schedulingdetailsBeanMapper.deleteTSchedulingdetails(id, year);
	}

	@Override
	public List<TSchedulingdetails> getTSchedulingdetailsByYear(int year,
			int scheid) {
		return schedulingdetailsBeanMapper.getTSchedulingdetailsByYear(year, scheid);
	}

	@Override
	public List<TSchedulingdetails> getTSchedulingdetailsByscheid(int scheid) {
		return schedulingdetailsBeanMapper.getTSchedulingdetailsByscheid(scheid);
	}

	@Override
	public int deleteTSchedulingdetailsByid(int id) {
		return schedulingdetailsBeanMapper.deleteTSchedulingdetailsByid(id);
	}

	

}
